class Student{
    private String name="zhangsan";
    public int age=18;

    public Student(){

    }

    public Student(String name,int age){
        this.name=name;
        this.age=age;
    }

    private void eat(){
        System.out.println("Eating");
    }

    public void sleep(){
        System.out.println("Sleeping");
    }

    private void function(String str){
        System.out.println(str);
    }

    @Override
    public String toString(){
        return "Student{"+"name="+name+'\''+",age="+age+'}';
    }

}
public class test2 {
    public static void main(String[] args) throws ClassNotFoundException{
        Class<?> c1=Class.forName("Student");
        Class<?> c2=Student.class;
        Student student=new Student();
        Class<?> c3=student.getClass();

        System.out.println(c1==c2);
        System.out.println(c3==c2);
        System.out.println(c1==c3);
    }

}





